package zhongbo.java.fast.order.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import zhongbo.java.fast.order.enums.ItemType;

// 商品类
@Data
@NoArgsConstructor
public class Item {
    private String id;     // 商品ID
    private String name;   // 名称
    private double price;  // 价格
    private ItemType type; // 类型

    public Item(String name, double price, ItemType type) {
        this.price = price;
        this.name = name;
        this.type = type;
    }

    public Item(String id, String name, double price, ItemType type) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.type = type;
    }
    // 构造方法/getter/setter
}